home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / prgtools / mint / mgr / sparcmgr / doc.zoo / doc / usrman / croff / Makefile < prev    next >
Encoding:
Makefile  |  1989-07-07  |  1.1 KB  |  46 lines

  1. #                        Copyright (c) 1988 Bellcore
  2. #                            All Rights Reserved
  3. #       Permission is granted to copy or use this program, EXCEPT that it
  4. #       may not be sold for profit, the copyright notice must be reproduced
  5. #       on copies, and credit should be given to Bellcore where it is due.
  6. #       BELLCORE MAKES NO WARRANTY AND ACCEPTS NO LIABILITY FOR THIS PROGRAM.
  7.  
  8. #    $Header: Makefile,v 1.4 88/07/08 13:51:00 sau Exp $
  9. #    $Source: /tmp/mgrsrc/doc/usrman/croff/RCS/Makefile,v $
  10.  
  11. # Makefile for Troff C-Preprocessor
  12.  
  13. START=.
  14.  
  15. #    hash table size (for keywords)
  16. BUCKETS = 59
  17. CFLAGS = -g -DHSIZE=$(BUCKETS)
  18. CPIO=croff.cpio
  19.  
  20. croff:        keys.o croff.o hash.o
  21.         cc -o croff croff.o hash.o keys.o
  22.  
  23. keys.c:        keys mktable
  24.         < keys ./mktable -n keywords $(BUCKETS) > keys.c
  25.  
  26. mktable:    mktable.o hash.o
  27.         cc $(CFLAGS) -o mktable mktable.o hash.o
  28.  
  29. clean:        
  30.         rm -f *.o core keys.c mktable lex.yy.c
  31.  
  32. clobber:        clean
  33.         rm -f croff
  34.  
  35. list:
  36.     @for i in Makefile README croff.1 croff.l hash.c hash.h keys mktable.c; do \
  37.         echo "$(START)/$$i"; \
  38.     done
  39.  
  40. cpio:
  41.         make -s list | cpio -ocva > $(CPIO)
  42.  
  43. hash.o mktable.o:    hash.h
  44.  
  45. install: croff
  46.